package rwlivbk.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import rwlivbk.model.Event;
import rwlivbk.model.SignUpRequest;

import java.util.ArrayList;

@Mapper
@Repository
public interface EventMapper {
    ArrayList<Event> findAllEvents();
    ArrayList<Event> findAllCurrentEvents();
    ArrayList<Event> findHistoryEvents();
    void addEvent(Event event);
    void updateEvent(Event event);
    void signUpForEvent(String username, int eventId);
    ArrayList<SignUpRequest> findSignUpsByEventId(int eventId);
//    ArrayList<SignUpRequest> findSignUpsByEventId(@Param("eventId") Integer eventId);

}
